import { getCurrentInstance, ComponentInternalInstance } from 'vue'
export function useGlobalConfig() {
  const i: ComponentInternalInstance | null = getCurrentInstance()
  if (i) {
    return i.appContext.config.globalProperties.$ELEMENT || {}
  } else {
    return undefined
  }
}
